import { _decorator, Component, Node } from 'cc';
import { EffectBase, JokerEffectData } from '../Card/EffectBase';
import { GameData } from '../GameData';
const { ccclass, property } = _decorator;

@ccclass('SkylandEffect')
export class SkylandEffect extends EffectBase {
    private static Effect: SkylandEffect = null;
    static get instance() {
        if (!this.Effect) {
            this.Effect = new SkylandEffect();
        }
        return this.Effect;
    }
    public activateEffect(data: JokerEffectData) {
        //如果传入是其他数据return
        if (!data.multiplier) {
            return;
        }
        data.multiplier+=GameData.playCardnum*2;
    }
}


